import request from '@/utils/request'

export function listStocktake(query) {
  return request({
    url: '/wms/stocktake/list',
    method: 'get',
    params: query
  })
}

export function getStocktake(id) {
  return request({
    url: '/wms/stocktake/' + id,
    method: 'get'
  })
}

export function addStocktake(data) {
  return request({
    url: '/wms/stocktake',
    method: 'post',
    data: data
  })
}

export function updateStocktake(data) {
  return request({
    url: '/wms/stocktake',
    method: 'put',
    data: data
  })
}

export function delStocktake(id) {
  return request({
    url: '/wms/stocktake/' + id,
    method: 'delete'
  })
}

export function changeStocktakeStatus(data) {
  return request({
    url: '/wms/stocktake/status',
    method: 'put',
    data: data
  })
}

